export function getTime(type) {
  if (type === 'start') {
    return new Date().getTime() - 3600 * 1000 * 24 * 90
  } else {
    return new Date(new Date().toDateString())
  }
}
// get dependencies verison from package.json by webpack.DefinePlugin
export function getVersion(name) {
  import('../../package').then(p => {
    return p.dependencies[name]
  })
}
